package com.hw.one.collect.dust.constans;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/3.
 */
public class SjwConstants {

    public static Map<String, String> regionIdWithName = new HashMap<>();
    public static Map<String, String> regionIdWithCode = new HashMap<>();
    public static Map<String, String> regionIdWithOtherCode = new HashMap<>();


    public static final String HOST = "123.15.58.210";//主机
    public static final int PORT=80;//端口
    public static final int Monitor_PORT=6001;//端口
    // 基础数据接口
    public static final String Base_URI = "http://"+HOST + ":"+PORT +"/blueSky/sys/build/getBuildSiteByAreas?geos=";
    // 监测数据wsdl
    public static final String Monitor_URI = "http://"+HOST+":"+Monitor_PORT+"/dataInfoService?wsdl";
    // 实时数据方法名
    public static final String getRealData = "getRealTimePmDataInfo";
    // 历史数据方法名
    public static final String getHistory = "getDMDataInfo";




    /**
     * 初始化接口需要的值
     */
    public static void getRegionIdWithName() {
        // key值 是对方接口的参数，value是自己数据库对应的行政区划编码
        regionIdWithName.put("3", "二七区");
        regionIdWithName.put("4", "管城区");
        regionIdWithName.put("5", "金水区");
        regionIdWithName.put("6", "上街区");
        regionIdWithName.put("7", "惠济区");
        regionIdWithName.put("8", "高新区");
        regionIdWithName.put("9", "航空港区");
        regionIdWithName.put("10", "郑东新区");
        regionIdWithName.put("11", "新郑市");
        regionIdWithName.put("12", "登封市");
        regionIdWithName.put("13", "新密市");
        regionIdWithName.put("14", "巩义市");
        regionIdWithName.put("15", "荥阳市");
        regionIdWithName.put("16", "中牟县");
        regionIdWithName.put("17", "中原区");
        regionIdWithName.put("18", "经开区");

        // key值 是对方接口的参数，value是自己数据库对应的行政区划编码
        regionIdWithCode.put("3", "410103000");
        regionIdWithCode.put("4", "410104000");
        regionIdWithCode.put("5", "410105000");
        regionIdWithCode.put("6", "410106000");
        regionIdWithCode.put("7", "410108000");
        regionIdWithCode.put("8", "410140000");
        regionIdWithCode.put("9", "410143000");
        regionIdWithCode.put("10", "410142000");
        regionIdWithCode.put("11", "410184000");
        regionIdWithCode.put("12", "410185000");
        regionIdWithCode.put("13", "410183000");
        regionIdWithCode.put("14", "410181000");
        regionIdWithCode.put("15", "410182000");
        regionIdWithCode.put("16", "410122000");
        regionIdWithCode.put("17", "410102000");
        regionIdWithCode.put("18", "410141000");


        // key值 是对方接口的参数，value是自己数据库对应的行政区划编码
        regionIdWithOtherCode.put("3", "410103");
        regionIdWithOtherCode.put("4", "410104");
        regionIdWithOtherCode.put("5", "410105");
        regionIdWithOtherCode.put("6", "410106");
        regionIdWithOtherCode.put("7", "410108");
        regionIdWithOtherCode.put("8", "410199");
        regionIdWithOtherCode.put("9", "410197");
        regionIdWithOtherCode.put("10", "410196");
        regionIdWithOtherCode.put("11", "410184");
        regionIdWithOtherCode.put("12", "410185");
        regionIdWithOtherCode.put("13", "410183");
        regionIdWithOtherCode.put("14", "410181");
        regionIdWithOtherCode.put("15", "410182");
        regionIdWithOtherCode.put("16", "410122");
        regionIdWithOtherCode.put("17", "410102");
        regionIdWithOtherCode.put("18", "410198");



    }

}
